using UnityEngine;
using System.Collections;

public abstract class LinkableObject : MonoBehaviour{
	public LinkableObject partner;
	public Trigger trigger;
	// Use this for initialization
	
	void Start () {
	
	}
	
	//public abstract bool hasReachedGoal();
	
	public abstract void reactToTrigger(TriggeredEvent TE);
	
	// Update is called once per frame
	public virtual void Update () 
	{
		TriggeredEvent TE=trigger.hasReachedGoal();
		if(TE!=null)
		{
			triggerResponse(TE);
		}
	}
	protected abstract void triggerResponse(TriggeredEvent TE);
}
